package com.example.shengyin.dao;

import com.example.shengyin.entity.Admin;
import com.example.shengyin.entity.Survey;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.sql.Timestamp;
import java.util.List;

/**
 * AdminMapper接口
 * 
 * @author ruoyi
 * @date 2023-07-29
 */
@Service
public interface SurveyMapper
{
    public Survey select(@Param("id")Long id);
    public List<Survey> selectus(@Param("userid")Long userid);
    public List<Survey> list(@Param("pagestart")int pagestart, @Param("limit")int limit,
                            @Param("phone") String phone, @Param("stype")Long stype);
    public int count(@Param("phone") String phone, @Param("stype")Long stype);
    public int insert(Survey dAdmin);
    public int update(Survey dAdmin);
    public int delete(@Param("id")Long id);
    public int deleteByIds(@Param("ids")String ids);


    Long selectid(@Param("phone")String s);
}
